home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Gamer Resource Kit / Hardcore Gamer Resource Kit - Disc 2.iso / Pc / P_R / PQ1V_PEN.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1995-08-18  |  2KB  |  110 lines

  1. @echo off
  2.  
  3. rem srd=source drive
  4. rem ddr=dest drive
  5. rem ddi=dest dir
  6. rem cdr=cdrom drive
  7. rem fv=floppy version
  8.  
  9. what ye
  10. set srd=%what%
  11. echo.
  12. echo Are you playing the Police Quest Collection or Police Quest 1 Disk version?
  13. what c "Press 1 for the Collection, Press 2 for the Disk version. " 12
  14. echo.
  15. echo.
  16. if %what%==2 set fv=1
  17. if "%fv%"=="1" goto msgFl1
  18.  
  19. :msgCD1
  20. echo This disk will install patches for Daryl F. Gates' Police Quest Collection.
  21. echo.
  22. echo Please enter the letter of the drive where The Police Quest Collection is installed.
  23. goto cont1
  24.  
  25. :msgFl1
  26. echo This disk will install patches for Police Quest: Pursuit of the Death Angel.
  27. echo.
  28. echo Please enter the letter of the drive where you installed Police Quest.
  29.  
  30. :cont1
  31. what c "" abcdefghijklmnopqrstuvwxyz
  32. echo.
  33. echo.
  34. set ddr=%what%
  35. if "%fv%"=="1" goto msgFl2
  36.  
  37. :msgCD2
  38. echo Please enter the directory you installed The Police Quest Collection in.
  39. echo Press [enter] to install to the default directory (\SIERRA\PQCOL).
  40. echo.
  41. echo.
  42. goto cont2
  43.  
  44. :msgFl2
  45. echo Please enter the directory where Police Quest is installed.
  46. echo Press [enter] to install to the default directory (\SIERRA\PQ).
  47. echo.
  48.  
  49. :cont2
  50. what s "Please enter directory ([enter] for default) >"
  51. set ddi=%what%
  52. echo.
  53. echo.
  54. if "%fv%"=="1" goto msgFl3
  55.  
  56. :msgCD3
  57. echo Please enter the letter of your CD-ROM drive.
  58. what c "" abcdefghijklmnopqrstuvwxyz
  59. set cdr=%what%
  60. echo.
  61. echo.
  62. goto cont3
  63.  
  64. :msgFl3
  65.  
  66. :cont3
  67. if "%fv%"=="1" goto msgFl4
  68.  
  69. :msgCD4
  70. if "%ddi%" == "" set ddi=\sierra\pqcol
  71. goto cont4
  72.  
  73. :msgFl4
  74. if "%ddi%" == "" set ddi=\sierra\pq
  75.  
  76. :cont4
  77. if "%fv%"=="1" goto instFl
  78.  
  79. :instCD
  80. %ddr%:
  81. md %ddi%\pq1
  82. %srd%:
  83. copy 45.hep %ddr%:%ddi%\pq1
  84. copy 45.scr %ddr%:%ddi%\pq1
  85. copy 996.voc %ddr%:%ddi%\pq1
  86. rem Now we change config file 'cuz pq1 won't know about the patches -RWL
  87. %ddr%:
  88. cd %ddi%
  89. echo patchDir=%ddr%:%ddi%\pq1;%cdr%:\pq1_vga >> resource.tmp
  90. type resource.pq1 >> resource.tmp
  91. del resource.pq1
  92. ren resource.tmp resource.pq1
  93. cd\
  94. %srd%:
  95. goto end
  96.  
  97. :instFl
  98. copy 45.hep %ddr%:%ddi%
  99. copy 45.scr %ddr%:%ddi%
  100. copy 996.voc %ddr%:%ddi%
  101.  
  102. :end
  103. set ddi=
  104. set ddr=
  105. set srd=
  106. set cdr=
  107. set fv=
  108. echo The files have been installed.  Please run the game as you normally would.
  109. echo.
  110.